home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amoszine 2
/
Amoszine 2.adf
/
andrew_smith_source
/
Vumeter.AMOS
/
Vumeter.amosSourceCode
Wrap
AMOS Source Code
|
1992-02-26
|
1KB
|
49 lines
' Vumeter demonstration program - By A. Smith
Do
Screen Open 0,320,200,2,Lowres
Curs Off : Flash Off
Track Load Fsel$("","","Load a SoundTracker tune",""),6
Track Play
Double Buffer
Autoback 0
Set Rainbow 0,1,4096,"(5,1,1)","(5,-1,1)",""
Rainbow 0,1,85,256
Do
If Mouse Key=1 Then Exit
V0=Vumeter(0)
V1=Vumeter(1)
V2=Vumeter(2)
V3=Vumeter(3)
Cls
If V0<>0
P0=V0
Else
Add P0,-2
If P0<0 : P0=0 : End If
End If
If V1<>0
P1=V1
Else
Add P1,-2
If P1<0 : P1=0 : End If
End If
If V2<>0
P2=V2
Else
Add P2,-2
If P2<0 : P2=0 : End If
End If
If V3<>0
P3=V3
Else
Add P3,-2
If P3<0 : P3=0 : End If
End If
Bar 10,100-P0 To 20,101
Bar 30,100-P1 To 40,101
Bar 50,100-P2 To 60,101
Bar 70,100-P3 To 80,101
Screen Swap : Wait Vbl
Loop
Loop